<template>
  <div id="menu">
    <div class="menu">
      <div class="ul" v-for="ul in menu" :key="ul.type">
        <div class="type">{{ ul.type }}</div>
        <div class="li">
          <div class="nav"
               v-for="li in ul.content" :key="li.title"
            @click="navRes()"
          >
            {{li.title}}
          </div>
        </div>
      </div>
    </div>

    <div class="search">
      搜索：<input type="text" class="text" v-model="search" >
      <div class="btn">搜索</div>
    </div>

  </div>

</template>

<script>
export default {
  name: "MenuNav",
  data(){
    return{
      menu:[
        {type:'国产',content:[
            {title:'自拍视频',url:''},{title:'淫妻作乐',url:''},{title:'开放青年',url:''},{title:'精品分享',url:''},
            {title:'台湾辣妹',url:''},{title:'韩国主播',url:''},{title:'动漫卡通',url:''},{title:'经典三级',url:''},
          ]},
        {type:'女优',content:[
            {title:'女性向純愛',url:''},{title:'GIGA女战士',url:''},{title:'波多野结衣',url:''},{title:'深田咏美',url:''},
            {title:'桥本有菜',url:''},{title:'苍井空',url:''},{title:'三上悠亚',url:''},{title:'吉泽明步',url:''},
          ]},
        {type:'电影',content:[
            {title:'无码中字',url:''},{title:'SM系列',url:''},{title:'高清无码',url:''},{title:'熟女人妻',url:''},
            {title:'美颜巨乳',url:''},{title:'丝袜制服',url:''},{title:'中文有码',url:''},{title:'欧美系列',url:''},
          ]},
        {type:'图文',content:[
            {title:'自拍偷拍',url:''},{title:'美腿丝袜',url:''},{title:'欧美色图',url:''},{title:'卡通图片',url:''},
            {title:'都市小说',url:''},{title:'乱伦小说',url:''},{title:'校园小说',url:''},{title:'人妻小说',url:''},
          ]},

      ],
      search:''
    }
  },
  methods:{
    navRes(){
      let routeUrl = this.$router.resolve({
        path: "/video",
      });
      window.open(routeUrl.href, '_blank');
    }
  }
}
</script>

<style lang="scss" scoped>
  #menu{
    background: #FFF; width: 1300px; margin:20px auto;
  }

  .menu{
    color: #FFF;border-radius: 5px;
    box-sizing: border-box;
    background: #0086CF; padding: 0 20px;
  }
  .menu .ul{padding: 15px 0px; border-top: 1px solid rgba(255,255,255,.1);
    display: flex; text-align: center;
  }
  .menu .ul .type{flex: 1;position: relative}
  .menu .ul .type:after {
    content: "";
    position: absolute; z-index: 1;
    width: 1px;height: 16px;
    background: rgba(255,255,255,.2);
    right: 0px; top: 50%;
    transform: translateY(-50%);
  }
  .menu .ul .li{flex: 8; }
  .menu .ul .li .nav{ display: inline-block;width: 12.5%;
    cursor: pointer; }

@media screen and (max-width:1366px){
  #menu{width: 1300px; margin:20px auto;}
}
@media screen and (max-width:1280px){
  #menu{width: 97%; margin: 20px 1.5%;}
}

@media screen and (max-width: 760px){
  #menu{width: 100%;margin: 20px 0px}
  .menu{padding:0px; border-radius: 0px}
  .menu .ul{padding: 5px 0px; font-size: 13px}
  .menu .ul .type{line-height: 60px}
  .menu .ul .li .nav{ cursor: pointer; display: inline-block;width: 25%;line-height: 30px}
}

  .search{
    padding: 15px; display: flex; line-height: 30px; font-size: 15px; font-weight: 700;

    .text{ height: 30px; line-height: 28px; padding: 0px 5px; border-radius: 3px;
      border: 1px solid #999; box-sizing: border-box;

    }

    .btn{
      height: 30px; line-height: 28px; padding: 0px 15px; border-radius: 3px;
      border: 1px solid #999; box-sizing: border-box; margin-left: 15px;
      cursor: pointer;
      font-size: 14px; font-weight: 500;
    }
    .btn:hover{background: #eee;}
  }


</style>
